using Gateway.Domain.Entities;

namespace Gateway.Domain.TableRoutes;

public class OrderVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute<Order>
{
    public OrderVirtualTableRoute() : base(2, 3)
    {
    }

    public override void Configure(EntityMetadataTableBuilder<Order> builder)
    {
        // id 00001  00002
        builder.ShardingProperty(x => x.Id);
        builder.AutoCreateTable(null);
        builder.TableSeparator("_");
    }
}